/*
 * 首页路由
 *
 * @Author:    1024创新实验室-主任：卓大
 * @Date:      2022-09-06 20:51:41
 * @Wechat:    zhuda1024
 * @Email:     lab1024@163.com
 * @Copyright  1024创新实验室 （ https://1024lab.net ），Since 2012
 */
import {HOME_PAGE_NAME} from '/@/constants/system/home-const';
import {MENU_TYPE_ENUM} from '/@/constants/system/menu-const';
import SmartLayout from '/@/layout/smart-layout.vue';

export const homeRouters = [
    {
        path: '/',
        name: '_home',
        redirect: {name: HOME_PAGE_NAME},
        component: SmartLayout,
        meta: {
            title: '首页',
            menuType: MENU_TYPE_ENUM.CATALOG.value,
            icon: 'HomeOutlined',
        },
        children: [
            {
                path: '/home',
                name: HOME_PAGE_NAME,
                meta: {
                    title: '首页',
                    menuType: MENU_TYPE_ENUM.MENU.value,
                    icon: 'HomeOutlined',
                    parentMenuList: [{name: '_home', title: '首页'}],
                },
                component: () => import('/@/views/system/home/index.vue'),
            },
            {
                path: '/question-config',
                component: () => import('/@/views/business/evaluate/question/question-config.vue'),
                meta: {
                    title: '题目配置',
                    menuType: MENU_TYPE_ENUM.MENU.value,
                },
            },
            {
                path: '/model-evaluate-config',
                component: () => import('/@/views/business/evaluate/model-evaluate/model-evaluate-config.vue'),
                meta: {
                    title: '型号估价配置',
                    menuType: MENU_TYPE_ENUM.MENU.value,
                },
            },
        ],
    },
];
